package com.zhiwang.planet.util

import com.zhiwang.planet.BuildConfig

class Store {


    companion object Store {


        val URL_GAME_: String get() = baseUrl() + "integrawall/ucenter_games"
        val URL_TASK_: String get() = baseUrl() + "integrawall/ucenter_tasks"
        val Service: String get() = baseUrl() + "ucenter/service"


        /**
         * 极速90 ：fast
        幸运3星：fast3
        三方三星：sfsx
         */
        //fixme
        val Guide: String get() = baseUrl() + "ucenter_cash/and_withdrawal"

        val LUCKY3: String get() = ji7AppBaseUrl() + "fast3"

        val SFSX: String get() = ji7AppBaseUrl() + "sfsx"

        val URL_FAST28 = ji7AppBaseUrl() + "fast"


        const val TINY_GAME_APP_HOST = "https://qwxq-xyx-area-svc.beike.cn"
        const val TINY_GAME_APP_ID = "quweixingqiu"
        val AliServiceAppKey = "27664017"
        const val BUGLY_APPID = "d7e0fb0197"
        const val UMENG_APP_KEY = "5c1cab92f1f5562ef1000027"

        //首页更多通知
        val URL_NOTICE_MSG: String get() = baseUrl() + "xingqiu/notices"

        val Promotion: String get() = baseUrl() + "act_wy/act2"

        //星阶说明
        val URL_RANK_AGREEMENT: String get() = baseUrl() + "xingqiu/level_intro"


        //星球秘籍
        val URL_TIPS: String get() = baseUrl() + "index/miji"

        //星球活动
        val URL_ACTIVITY: String get() = baseUrl() + "xingqiu/activity"

        //好友邀请
        val URL_FRIEND_INVITE: String get() = baseUrl() + "invite/new_index"
        val URL_DAILY_TASKS: String get() = baseUrl() + "daily/index"

        /*搜索*/
        val SEARCH: String get() = baseUrl() + "games/search_index"

        //vip 中心
        val URL_VIP_CENTER: String get() = ji7BaseUrl() + "xqmember/index"

        //会员列表
        val URL_MEMBER_SHIP: String get() = ji7BaseUrl() + "xqvip/index"

        //邀请达人固定入口
        val URL_INVITE_MAN: String get() = baseUrl() + "invite/yqdr_index"

        //邀请达人申请入口
        val URL_INVITE_MAN_INDEX: String get() = baseUrl() + "invite/yq_index"


//        const val URL_FRIEND_INVITE: String :String get() = if(AppHelper.testEnv())BuildConfig.DEBUG_TEST_BASE_URL else BuildConfig.BASE_URL + "invite/index"

        /************************---->游戏试玩部分URL**********************************/
        val URL_MONEY_TIP: String get() = baseUrl() + "xingqiu/zhuanqian_gl"

        val URL_NEWER_TASK = baseUrl() + "learntask/start_up"

        val URL_LOSER_INVITE = baseUrl() + "invite/index"

        //棋牌
        val URL_POKER: String get() = baseUrl() + "games?type=20"

        //手游
        val URL_MOBILE: String get() = baseUrl() + "games?type=10"

        //我的任务
        val URL_MY_GAME: String get() = baseUrl() + "ucenter_games/lists"  //试玩

        val URL_MY_TASK: String get() = baseUrl() + "ucenter_tasks/lists"  //快赚
        val URL_ENTERTAINMENT: String get() = baseUrl() + "yule/index"
        val URL_ENTERTAINMENT2: String get() = baseUrl() + "yule/index2"

        //快赚
        val URL_TAKS: String get() = baseUrl() + "tasks"
        const val APP_ID = "wx835dae6e8ca8fd3c"

        val USER_AGREEMENT: String get() = baseUrl() + "member/agreement"
        const val URL_QQ28 = BuildConfig.Ji7_BASE_URL + "fastqq"
        const val URL_PC28 = BuildConfig.Ji7_APP_BASE_URL + "pc"

        /************************<----游戏试玩部分URL**********************************/
        val URL_LOTTERY: String = ji7BaseUrl() + "dshop?page_type=xq"

        val EXCHANGE_BEAN_URL: String get() = (if (AppHelper.testEnv()) BuildConfig.DEBUG_Ji7_BASE_URL else BuildConfig.Ji7_BASE_URL) + "ucenter_qdexchange/exchange"


        val EXCHANGE_LIST_URL: String get() = (if (AppHelper.testEnv()) BuildConfig.DEBUG_Ji7_BASE_URL else BuildConfig.Ji7_BASE_URL) + "ucenter_qdexchange/xq_exchange_conf"


        private fun baseUrl(): String = if (AppHelper.testEnv()) BuildConfig.DEBUG_TEST_BASE_URL else BuildConfig.BASE_URL

        private fun ji7BaseUrl(): String = if (AppHelper.testEnv()) BuildConfig.DEBUG_Ji7_BASE_URL else BuildConfig.Ji7_BASE_URL

        private fun ji7AppBaseUrl(): String = if (AppHelper.testEnv()) BuildConfig.DEBUG_Ji7_APP_BASE_URL else BuildConfig.RELEASE_Ji7_APP_BASE_URL

    }
}
